<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>添加/修改页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../component/pear/css/pear.css" />
    <link rel="stylesheet" href="../../../style/wangeditor.css">
    <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
    <div id="app" v-cloak>
        <div class="add">
            <div class="header">
                <span>{{(action == 'Add'?'添加':'修改')}}活动批次</span>
            </div>
            <div class="main" style="padding: 0 15px;">
                <!-- 配置属性, 目前仅支持 单主表 多子表 结构 -->
                <div id="form"
                    :data-options="JSON.stringify({'tableName':'activity_batch','formName':'dataForm' ,'primaryKey':'Activity_Batch_SerialNumber'})">
                </div>
                <div class="table_titel">
                    <div class="titel">活动批次管理</div>
                </div>
                <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
                    <el-descriptions :column="1" size="large" border>
                        <el-descriptions-item>
                            <template slot="label">
                                <div class="cell-item required">关联活动</div>
                            </template>  
                            <!-- 无关联子表 -->
                            <!-- <el-form-item prop="Activity_SerialNumber" :rules="[{ required: true, message: '请选择关联活动', trigger: 'change' }]">
                                <el-select v-model.trim="dataForm.Activity_SerialNumber" placeholder="请选择关联活动" style="width: 100%;" clearable filterable>
                                    <el-option v-for="(item,index) in 表名" :key="index" :label="item.活动名" :value="item.Activity_SerialNumber" />
                                </el-select>
                            </el-form-item> -->
                        </el-descriptions-item>
                        
                        <el-descriptions-item>
                            <template slot="label">
                                <div class="cell-item">码数量</div>
                            </template>
                            <el-form-item prop="Code_Quantity"
                                :rules="[{ required: true, message: '请输入码数量', trigger: 'blur' }]">
                                <el-input v-model.trim="dataForm.Code_Quantity" placeholder="请输入码数量" />
                            </el-form-item>
                        </el-descriptions-item>
                        <el-descriptions-item>
                            <template slot="label">
                                <div class="cell-item">码文件</div>
                            </template>
                            <el-form-item prop="Code_File_URL"
                                :rules="[{ required: true, message: '请输入码文件', trigger: 'blur' }]">
                                <el-input v-model.trim="dataForm.Code_File_URL" placeholder="请输入码文件" />
                            </el-form-item>
                        </el-descriptions-item>
                        <el-descriptions-item>
                            <template slot="label">
                                <div class="cell-item">活动批次描述</div>
                            </template>
                            <el-form-item prop="Activity_Batch_Main"
                                :rules="[{ required: true, message: '请输入活动批次描述', trigger: 'blur' }]">
                                <el-input v-model.trim="dataForm.Activity_Batch_Main" placeholder="请输入活动批次描述" />
                            </el-form-item>
                        </el-descriptions-item>
                        
                    </el-descriptions>
                </el-form>
            </div>
            <div class="footer">
                <el-button size="medium" @click="handleBack">返回</el-button>
                <el-button size="medium" type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
    <script type="text/javascript" src="../../../utils/xlsx.full.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../utils/vuex.min.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../utils/components.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/validity.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="../../../utils/http.js"></script>
    <script type="text/javascript" src="js/add.js"></script>
</body>

</html>